package com.hzj.utils;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class UserUtils {
    public static Date createDate() throws ParseException {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
        String now = df.format(new Date());// new Date()为获取当前系统时间
        Date creationDate= df.parse(now);
        return creationDate;
    }

    public static String createUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }

}
